{% set navigation_bar = [
    ('/vipadmin/', 'index', '首页'),
    ('/vipadmin/manage/list/1', 'manage', '投放管理'),
    ('/vipadmin/throw/list/1', 'throw', '模板管理'),
    ('/vipadmin/types/list/1', 'types', '模板分类'),
] -%}
{% set active_page = active_page|default('index') -%}

<ul class="nav nav-sidebar">
    {% for href, id, caption in navigation_bar %}
      <li{% if id == active_page %} class="active"{% endif %}>
      <a href="{{ href|e }}">{{ caption|e }}</a></li>
    {% endfor %}
</ul>
